package com.example.file.domain;

import lombok.Getter;

public enum MimeType {

    GIF("gif", "image/gif"),
    JPEG("jpeg", "image/jpeg"),
    JPG("jpg", "image/jpeg"),
    PNG("png", "image/png"),

    WEBP("webp", "image/webp");

    /**
     * 扩展名
     */
    @Getter
    private final String extend;

    /**
     * 内容类型
     */
    @Getter
    private final String mimeType;

    MimeType(String extend, String mimeType) {
        this.extend = extend;
        this.mimeType = mimeType;
    }
}
